﻿using DAL.Entities;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL.Configurations
{
    public class TrackConfiguration : EntityTypeConfiguration<Track>
    {
        public TrackConfiguration()
        {
            ToTable("track").HasKey(x => x.TrackId);
            Property(x => x.DeparturePlace).HasMaxLength(100);
            Property(x => x.ArrivingPlace).HasMaxLength(100);
            Property(x => x.Trasportation).HasMaxLength(50);
            Property(x => x.TrackCode).HasMaxLength(50);
        }
    }
}
